import {PUBLICDATA, CITYLIST} from '@/services/api'
import {request, METHOD} from '@/utils/request'

/**
 * 获取公共数据
 * @param type
 * @returns {Promise<*>}
 */
export async function getPublicData(type) {
    return request(PUBLICDATA, METHOD.GET, { type : type })
}

/**
 * 获取城市列表
 * @param type
 * @returns {Promise<*>}
 */
export async function getCityList(countryCode) {
    return request(CITYLIST, METHOD.GET, { countryCode : countryCode })
}